package com.flowplan.ai.service;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * AI服务状态
 * 
 * @author FlowPlan Team
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AiServiceStatus {
    
    private boolean requirementAnalysisEnabled;
    private boolean documentGenerationEnabled;
    private boolean smartSuggestionsEnabled;
    private boolean apiConnected;
    private String apiVersion;
    private long lastCheckTime;
    
    public boolean isFullyEnabled() {
        return requirementAnalysisEnabled && documentGenerationEnabled && 
               smartSuggestionsEnabled && apiConnected;
    }
    
    public String getStatusSummary() {
        if (isFullyEnabled()) {
            return "所有功能正常";
        } else if (!apiConnected) {
            return "API连接异常";
        } else {
            return "部分功能已禁用";
        }
    }
}